﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using AbstraX;
using System.Linq.Expressions;
using System.Xml.Serialization;
using System.IO;
using AbstraX.ClientInterfaces;

public static class AbtraXEntensions
{
    public static string MakeID(this IBase baseObject, string predicate)
    {
        var id = "/" + baseObject.GetType().Name + "[@" + predicate + "]";

        if (baseObject.Parent != null)
        {
            id = baseObject.Parent.ID + id;
        }

        return id;
    }
}
